package com.ls.lserp.modules.produce.dao;

import java.util.List;

import com.ls.lserp.common.persistence.CrudDao;
import com.ls.lserp.common.persistence.annotation.MyBatisDao;
import com.ls.lserp.modules.order.entity.OrderMateriel;
import com.ls.lserp.modules.produce.entity.ProduceNotice;
import com.ls.lserp.modules.produce.entity.ProducePlan;
@MyBatisDao
public interface ProduceNoticeDao extends CrudDao<ProduceNotice>{
	
	//获取班组
	public List<ProduceNotice> findGroupList();
	//修改生产计划状态
	public int updateStatus(ProduceNotice produceNotice);
	//通过订单ID修改生产计划状态
	public int updateStatusByIndentID(ProduceNotice produceNotice);
	//插入计划通知单关联表信息
	public int insertPlanNotice(ProduceNotice produceNotice);
	//插入通知单订单关联表信息
	public int insertNoticeOrder(ProduceNotice produceNotice);
	//插入通知单制单关联表信息
	public int insertNoticeLicense(ProduceNotice produceNotice);
	//获取合同订单信息
	public OrderMateriel getOrderInfo(Long id);
	//获取定制合同信息
	public OrderMateriel getContractInfo(Long id);
	//获取一条生产计划信息
	public ProducePlan getPlan(Long id);
	/**
	  * @Title: findIndentList
	  * @Description: 选择合同订单一览
	  * @param @param orderMateriel
	  * @param @return
	  * @return List<OrderMateriel> 
	  * @throws
	  */
	public List<OrderMateriel> findIndentList(OrderMateriel orderMateriel);
	//更新订单数量
	public int updateOrderQuantity(ProduceNotice produceNotice);
	//获取备料详情
	public List<OrderMateriel> findStockDetails(ProduceNotice produceNotice);
	
}
